package com.yy.wga.user.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.user.feign.request.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 用户埋点
 *
 * @author lgw
 */
@FeignClient(name = "user-burial-point-feign",
        url = "http://127.0.0.1:9100",
        path = "/api/user/burial/point/")
public interface UserBurialPointFeign {

    /**
     * 小程序微信code登录，没有用户信息
     *
     * @param request SaveUserBurialPointReq
     * @return Boolean
     */
    @PostMapping("save")
    Result<Boolean> burialPoint(@Validated @RequestBody SaveUserBurialPointReq request);
}
